package cz.data.domain.quality.mapstruct;

import cz.data.domain.quality.model.entity.ScheduleLogEntity;
import cz.data.domain.quality.model.vo.ScheduleLogVo;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ScheduleLogMapper {

    /**
     * 将源对象转换为VO对象
     * @param e
     * @return D
     */
    ScheduleLogVo toVO(ScheduleLogEntity e);

    /**
     * 将源对象集合转换为VO对象集合
     * @param es
     * @return List<D>
     */
    List<ScheduleLogVo> toVO(List<ScheduleLogEntity> es);
}
